Revert 91c486918e02 "More consistent error handling in libxl"
authorIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 21 Jul 2010 15:50:15 +0000 (16:50 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 21 Jul 2010 15:50:15 +0000 (16:50 +0100)
commit389da317e2f3ab4232e2ea5c238f7ff1658e6c23
tree09168450c5516716cde80416eedbaf395fdaae89
parent698271c2e6ae016596d919b41b74c7e0e6ae28c0
Revert 91c486918e02 "More consistent error handling in libxl"

I'm afraid this pattern is wrong for two reasons.  Firstly,
xc_domain_pause and functions like it do not return XC_ERROR_* values.
They typically return -1 on error, and set errno.

Secondly, the error codes from libxc are not really all that useful.
They mostly serve to identify where the error originated.

See the comment in xenctrl.h near line 70.
tools/libxl/libxl.c
tools/libxl/libxl_dom.c
tools/libxl/libxl_internal.h